package cn.mandifal.manager.service.impl;

import cn.mandifal.manager.service.AdminService;
import cn.mandifal.mapper.DpAdminMapper;
import cn.mandifal.pojo.DpAdmin;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * 管理员服务 实现层
 * @author ws
 */
@Service(timeout = 3000)
public class AdminServiceImpl implements AdminService {
    @Autowired
    private DpAdminMapper dpAdminMapper;

    /**
     * 通过用户名查询用户
     * @param username 用户名
     * @return 返回查询结果
     */
    @Override
    public DpAdmin findByUsername(String username) {
        return dpAdminMapper.selectByUsername(username);
    }
}
